package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-05-22 09:04:48.892
 */
@Entity
@Table(name = "WF_SCHEDULE",catalog = "wfdb")
public class WfSchedule implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_SCHEDULE";

    /**调度编号 */
	public static final String ALIAS_SCH_ID = "SCH_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**流程实例编号 */
	public static final String ALIAS_INS_FLOW_ID = "INS_FLOW_ID";
    /**节点实例编号 */
	public static final String ALIAS_INS_NODE_ID = "INS_NODE_ID";
    /**调度状态: 1 可调度 2 完成 -1 异常 */
	public static final String ALIAS_SCH_STATE = "SCH_STATE";
    /**备注 */
	public static final String ALIAS_NOTES = "NOTES";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "SCH_ID", unique = true, nullable = false)
    public java.lang.Long schId;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "INS_FLOW_ID")
    public java.lang.Long insFlowId;
  
 	@Column(name = "INS_NODE_ID")
    public java.lang.Long insNodeId;
  
 	@Column(name = "SCH_STATE")
    public java.lang.Long schState;
  
 	@Column(name = "NOTES")
    public java.lang.String notes;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  





	public java.lang.Long getSchId() {
		return this.schId;
	}
	
	public void setSchId(java.lang.Long value) {
		this.schId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.Long getInsFlowId() {
		return this.insFlowId;
	}
	
	public void setInsFlowId(java.lang.Long value) {
		this.insFlowId = value;
	}

	public java.lang.Long getInsNodeId() {
		return this.insNodeId;
	}
	
	public void setInsNodeId(java.lang.Long value) {
		this.insNodeId = value;
	}

	public java.lang.Long getSchState() {
		return this.schState;
	}
	
	public void setSchState(java.lang.Long value) {
		this.schState = value;
	}

	public java.lang.String getNotes() {
		return this.notes;
	}
	
	public void setNotes(java.lang.String value) {
		this.notes = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}


	
	public WfSchedule() {
	}
	
	public WfSchedule(boolean qryflag) {
	    if(qryflag){
	    		this.schId = null;
				this.flowId = null;
				this.insFlowId = null;
				this.insNodeId = null;
				this.schState = null;
				this.notes = null;
				this.createTime = null;
			    }
	}

    public WfSchedule(
            java.lang.Long inFlowId,
            java.lang.Long inInsFlowId,
            java.lang.Long inInsNodeId,
            java.lang.Long inSchState,
            java.lang.String inNotes
    ) {
        super();
        this.flowId = inFlowId;
        this.insFlowId = inInsFlowId;
        this.insNodeId = inInsNodeId;
        this.schState = inSchState;
        this.notes = inNotes;
    }


	public WfSchedule(
	    java.lang.Long inSchId,
	    java.lang.Long inFlowId,
	    java.lang.Long inInsFlowId,
	    java.lang.Long inInsNodeId,
	    java.lang.Long inSchState,
	    java.lang.String inNotes,
		java.util.Date inCreateTime
	 ) {
		super();
				this.schId = inSchId;
				this.flowId = inFlowId;
				this.insFlowId = inInsFlowId;
				this.insNodeId = inInsNodeId;
				this.schState = inSchState;
				this.notes = inNotes;
				this.createTime = inCreateTime;
			}





}

